<?php

use Illuminate\Database\Seeder;

class Store_typeTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $arr=[];
        for($i=1;$i<130;$i++){

        	$tmp=[];
        	$type=array('火锅','农家院','饮品','超市','下午茶','快餐');

        	$tmp['typename']=$type[rand(0,5)];
        	$tmp['store_id']=$i;
        	// $tmp['storename']='店名'.rand(1,130);
        	// $tmp['cooktime']=rand(18,40);
        	// $tmp['storepic']=($i+1).'.jpg';

        	$arr[]=$tmp;
        }

        DB::table('store_type')->insert($arr);
    }
}
